all: functionSolver

functionSolver: main.o solver.o plus.o minus.o divide.o multiply.o const.o var.o
	g++ main.o solver.o plus.o minus.o divide.o multiply.o const.o var.o -o functionSolver

main.o: main.cpp
	g++ -c main.cpp

solver.o: solver.cpp
	g++ -c solver.cpp

plus.o: plus.cpp
	g++ -c plus.cpp

minus.o: minus.cpp
	g++ -c minus.cpp

divide.o: divide.cpp
	g++ -c divide.cpp

multiply.o: multiply.cpp
	g++ -c multiply.cpp

const.o: const.cpp
	g++ -c const.cpp

var.o: var.cpp
	g++ -c var.cpp

run: functionSolver
	./functionSolver
clean: 
	rm *.o functionSolver
